package storagex

type Config struct {
	Adapter   string `mapstructure:"adapter"`
	Bucket    string `mapstructure:"bucket"`
	AccessKey string `mapstructure:"access-key"`
	SecretKey string `mapstructure:"secret-key"`
	EndPoint  string `mapstructure:"end-point"`
	Domain    string `mapstructure:"domain"`
}

type FileInfo struct {
	Key        string `json:"key"`
	Size       int64  `json:"size"`
	Hash       string `json:"hash"`
	Md5        string `json:"md5"`
	MimeType   string `json:"mimeType"`
	CreateTime int64  `json:"createTime"`
	IsDir      bool   `json:"isDir"`
}
